package com.qdlc.p2p.biz.service.activity;

import java.util.Collections;
import java.util.HashMap;
import java.util.Map;

import com.qdlc.p2p.dal.dto.User;

/**
 * 活动环节参数
 * @author linya
 */
public class ActivityPlanParam {

	/**
     * 活动环节
     */
    private ActivityPlanEnum activityPlan;

    /**
     * 关联的用户
     */
    private User user;
	
    /**
     * 活动方案参数
     */
	Map<ActivityProgrammeEnum, ActivityProgrammeParam> programmeMap = new HashMap<ActivityProgrammeEnum, ActivityProgrammeParam>();
	
	
	/**
	 * 为活动计划添加活动方案参数
	 * @param programme
	 * @param attachmentObject
	 */
	public void addProgrammeParam(ActivityProgrammeEnum programme, ActivityProgrammeParam attachmentObject){
		programmeMap.put(programme, attachmentObject);
	}
	
	/**
	 * 获取活动方案参数
	 * @param programme
	 * @return
	 */
	public ActivityProgrammeParam getProgrammeParam(ActivityProgrammeEnum programme){
		return programmeMap.get(programme);
	}
	
	/**
	 * 获取所有的活动方案
	 * @return
	 */
	public Map<ActivityProgrammeEnum, ActivityProgrammeParam> getAllProgrammeParams(){
		return Collections.unmodifiableMap(programmeMap);
	}

	/**
	 * 获取活动计划枚举类型
	 * @return
	 */
	public ActivityPlanEnum getActivityPlan() {
		return activityPlan;
	}

	public void setActivityPlan(ActivityPlanEnum activityPlan) {
		this.activityPlan = activityPlan;
	}

	public User getUser() {
		return user;
	}

	public void setUser(User user) {
		this.user = user;
	}
	
}
